import axios from "@/axios";

const uri = '/role'

// 查询智能体支持的模型
export function findRoleTextModel(id) {
    return axios.get(uri + '/findTextModel', { params: { id } })
}

// 查询角色详情
export function findRoleById(id) {
    return axios.get(uri + '/findById', { params: { id } })
}

// 查询角色列表
export function findRoleList(current, size) {
    return axios.post(uri + '/list', { current, size })
}

// 新建角色对话
export function newRoleChat(roleId) {
    return axios.post(uri + "/chat/new", { roleId })
}

// 角色生成声音
export function roleSoundGgeneration(id, roleName, soundModel, soundModelVersion, language, text) {
    return axios.post(uri + "/sound/generation", { id, roleName, soundModel, soundModelVersion, language, text })
}